home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / apps / astronmy / strchart.arc / starchrt.arc / README < prev    next >
Text File  |  1988-10-01  |  6KB  |  95 lines

  1. This is a version of Alan Paeth's starchart software for Atari STs with color
  2. monitors.  I (Dave Yearke) did not write the program, nor do I take credit for
  3. any of Alan's work.  I wrote the file "starst.c," and made minor modifications
  4. to the other programs to get them to compile properly on the ST.  "Starst.c"
  5. is modeled after the other drivers included with starchart; you may do anything
  6. you want with it, as long as you give me some credit.  When redistributing this
  7. package, please include the whole thing.
  8.  
  9. Special thanks to Tony Andrews of Wildridge Consulting, Inc. (...!wldrdg!tony)
  10. whose port of version 1 provided me with a good model to base my port of
  11. version 2 on, and of course to Alan Paeth who did the thing in the first place.
  12.  
  13. I included Dave Van't Hof's BOUNDARY.STR file, but I did not add his clipping
  14. routines because similar ones had already been added to 2.1 (he based his work
  15. on 2.0).  I changed the vector type from 'VS' (solid) to 'VH' (hyphenated),
  16. which causes the lines to appear in dark red on the screen.  'VD' (dotted)
  17. lines will appear as dark green.
  18.  
  19. Starchart only uses lower case flags; this can be a problem when running from
  20. the GEM desktop, which likes to convert everything to upper case (this is
  21. fixed in the TOS 1.4 ROMs).  To keep the changes minimal, I decided to not add
  22. code to convert the arguments to lower case; instead, a small program named
  23. "starargs" is included which will ask for a program name (such as "starst.ttp)
  24. and its arguments and run it.
  25.  
  26. When the drawing is done, the program will wait for a keypress.  'S' will
  27. save the screen as a NeoChrome picture named "STARS.NEO"; 's' will save it
  28. as a DEGAS picture named "STARS.PI1".  Pressing 'r' will reverse the image;
  29. that is, the background will become white and the stars will turn black.  This
  30. is ideal for doing screen dumps (press ALT-HELP if you have an Epson-compatible
  31. printer).  Pressing 'r' again restores the original colors.
  32.  
  33. The command line switch '-x' will put "starst" in a batch mode; that is,
  34. instead of pausing to wait for a key press when it's done, it will dump the
  35. screen to a picture file and exit immediately.  This allows for running it
  36. from an iterative loop to produce charts on consecutive days to do animation.
  37. A file name can be specified after the -x flag:  "STARS.PI1" is the default.
  38. This flag can also be used with "starlase" and "starpost" to redirect standard
  39. output into a file, such as "prn:" (the printer).
  40.  
  41. I don't know if "starlase" (for HP Laserjets) or "starpost" (for Postscript
  42. printers) will work properly, as I don't have access to either. :-(  I do know
  43. that "starlase" requires almost half a megabyte of memory.
  44.  
  45. A quick-and-dirty program named "staranim" is also included.  This program
  46. takes as arguments a month [1-12], a year (4 digits), and some arguments
  47. for "starst."  It will loop through every day in the requested month, first
  48. running "planet" to calculate the positions of the planets for that date, then
  49. running "starst" with your arguments plus the "-t" argument to label the
  50. picture with that date and the "-x" argument to exit and save the screen as
  51. a DEGAS picture with the name "STARMMDD.PI1," where MM is the month and DD is
  52. the day.  This is not a fancy program; not much error checking is done on the
  53. arguments, all dates are taken at 1200GMT, it doesn't even know about leap
  54. years, but it is very handy for generating pictures to be used for animation,
  55. such as with Tom Hudson's "SMASHER" and "SHOWER."  Add 100 to the month to get
  56. debugging output; the program names and parameters will be printed but not
  57. executed.  Warning:  A full month's worth of picture files will take up almost
  58. a megabyte of disk space.  A sample file, "DECJAN.ANI," shows the motions of
  59. the objects in Sagittarius from December 1 to January 31. Use "SHOWER" to view
  60. it, which is available from GEnie, CompuServe, or some BBSs.  It was generated
  61. by putting "yale.str" in a RAMdisk, "g:," then running the commands
  62.      staranim.ttp 12 1988 -y g:\yale.str -r 18.2 -d -25 -s 15
  63.      staranim.ttp 01 1989 -y g:\yale.str -r 18.2 -d -25 -s 15
  64. from "starargs," then running "SMASHER" to compact them into an animation file.
  65.  
  66. Getting started:  unARC the files into a folder.  If you have a command shell
  67. such as "msh," "Micro C-Shell" or "gulam" available, I suggest you use it.
  68. Otherwise, double-click on "starargs.tos."  Try the following:
  69.           planet.ttp (with no arguments; make sure your ST's clock is set)
  70.           starst.ttp -c sgr
  71.           starst.ttp -c ori -f boundary.str
  72. (Look in the file "con.loc" for constellations and asterisms than can be
  73. accessed with the "-c" flag.)
  74.  
  75. Future enhancements I am considering include monochrome support and a GEM
  76. interface.  I would also like to come up with a more efficient way of doing
  77. animation; the "staranim" program simply runs "starst" many times, producing
  78. output that is 99% identical in each run.  A better way would be to imbed the
  79. animation in "starst" itself, where it would generate a screen with all the
  80. "fixed" stuff (lines, stars, etc.), save that screen in a different part of
  81. memory, then exec "planet," plot the data, save the picture, restore the picture
  82. from the saved background, and repeat for the time interval specified.  I'll try
  83. to do this for the next release; don't know when that'll be, though ...
  84.  
  85. Obligatory Caveat:  I make no guarantees as to the robustness or accuracy of
  86. this port of starchart.  While I am sure there are no devestating bugs in it,
  87. should one appear I am not responsible for any damage or misinformation it
  88. may cause.
  89.  
  90. All programs were compiled with Mark Williams C, version 3.0.6; portions of
  91. these programs copyright 1984, Mark Williams Company.
  92.  
  93. questions or comments on the ST version only should go to:
  94. dgy@sigmast.UUCP (Dave Yearke, Sigma Systems Technology, Inc.)
  95.